﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="DraftList.aspx.cs" Inherits="Jzy.Web.WorkFlow.Fore.DraftList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <ul>
             <li style="width:100px;"><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/Delete.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="批量删除"></asp:Literal></span></a></li>
            <li><asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" CssClass="hide" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left" style="font-weight:bold;">
            草稿箱列表</div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    主题
                </th>                
                <th>
                    拟稿时间
                </th>               
                <th>操作</th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemcommand="lv_ItemCommand" >
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"~/WorkFlow/Fore/DoForm.aspx?TaskID=" +  Eval("ID") + "&FlowID=" + Eval("FlowID") %>'><%#GetForm(Eval("FormInfo")).Name %></asp:HyperLink>&nbsp;
                        </td>                     
                        <td><%#Eval("SendTime")%></td>
                        <td>
                            <asp:LinkButton ID="btnDelete" CommandName="Del" CommandArgument='<%#GetForm(Eval("FormInfo")).ID %>'  runat="server" OnClientClick="return confirm('确认删除?')">删除</asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td class="empty" colspan="7">没有数据</td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
  
</asp:Content>
